home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / pascal / unitxrf.com / README.TXT < prev    next >
Encoding:
Text File  |  1991-05-20  |  1.4 KB  |  47 lines

  1. The following files have been donated to the Public Domain by Dan Thomas:
  2.  
  3. UnitXref.pas  finds all units used by a program (as far as I can tell)
  4. ProgErr.pas   handles program I/O errors & fatal errors
  5. FilExist.pas  checks to see if a file exists
  6. PathID.pas    combines a path and a file ID
  7.  
  8.  
  9.  
  10. UnitXref makes some assumptions you should know about.
  11.  
  12. First off, it has a typed constant telling it where to find units & include
  13. files.  You should modify it as necessary for your environment.
  14.  
  15. Secondly, it expects a reasonable syntax in the source(s) it scans.  For
  16. instance, the following code will probably not be handled correctly:
  17.  
  18. unit foo; interface uses bar; implementation
  19.  
  20. In other words, place stuff on separate lines like:
  21.  
  22. unit foo;
  23. interface
  24. uses bar;
  25. implementation
  26. etc
  27.  
  28. Thirdly, this unit should handle comments OK.
  29.  
  30. Fourthly (?), the source files for units are expected to have the extension
  31. of .PAS.
  32.  
  33. Lastly, it quits scanning the units when it reaches the implementation
  34. section.  The reason: I wrote this unit to help implement a function and
  35. procedure cross-reference.  Only functions and procedures that are in the
  36. interface section can be referenced by other units/programs.
  37.  
  38. Feel free to change this.
  39.  
  40. As a matter of fact, feel free to change whatever you want.  Just don't
  41. give me credit for it <grin>.
  42.  
  43. Be well.
  44.  
  45. Dan Thomas
  46. Compuserve: 72301,2164
  47.